/**
 * 路由控制
 */
import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    { path: '/',name: 'home',component: () => import(/* webpackChunkName: "about" */ '../views/home.vue') },
    { path: '/demo',name: 'demo',component: () => import(/* webpackChunkName: "about" */ '../views/demo.vue') },
    { path: '/mdEditor',name: 'mdEditor',component: () => import(/* webpackChunkName: "about" */ '../views/mdEditor.vue') },
    { path: '/mdShow',name: 'mdShow',component: () => import(/* webpackChunkName: "about" */ '../views/mdShow.vue') },
    { path: '/ossUpLoad',name: 'ossUpLoad',component: () => import(/* webpackChunkName: "about" */ '../views/ossUpLoad.vue') },
    { path: '/mongodb',name: 'mongodb',component: () => import(/* webpackChunkName: "about" */ '../views/mongoDemo.vue') },
]

const router = createRouter({
    history:createWebHistory(),
    routes
})

export default router
